#include <iostream>
#include <chrono>
#include <ctime>
#include "NowTime.h"

int GetNowTime(int &hour, int &minute)
{
    auto now = std::chrono::system_clock::now();
    auto now_c = std::chrono::system_clock::to_time_t(now);
    auto now_t = std::localtime(&now_c);

    hour = now_t->tm_hour;
    minute = now_t->tm_min;

    // std::cout << "Current hours: " << hour << std::endl;
    // std::cout << "Current minutes: " << minute << std::endl;

    return 0;
}
